<?php
namespace app\plus_exam\validate;
use think\Validate;

class Category extends Validate{

	protected $rule = [
		'name' => 'require',
	];

	protected $meassge = [
		'name' => '{%lang_category_name}',
	];

	protected $scene = [
        'add'   =>  ['name'],
        'edit'  =>  ['name'],
    ];
} 